<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
<style>
	h1 {
		color: red;
	}
</style>
</head>
<body>
	<h1>{$msg}</h1>
	<h2>即将为您跳转<span>{$time}</span></h2>
</body>
<script>
	var t = 0;
	window.onload = function(){
		t = setInterval("change()",1000);
	}
	function change(){
		var h1 = document.getElementsByTagName('span')[0];
		h1Value = h1.innerHTML;
		if(h1Value == 0){
			clearInterval(t);
			location="{$url}";
		}else{
			h1.innerHTML = h1Value - 1;
		}
	}
</script>
</html>